<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script src="./jquery.js"></script>
    <script>
        $(function() {
            // 两个打印的结果不确定
            // $.get('http://www.liulongbin.top:3006/api/robot', {
            //     spoken: '你好'
            // }, function(res1) {
            //     console.log(res1)
            // })


            // $.get('http://www.liulongbin.top:3006/api/synthesize', {
            //     text: '你好吗'
            // }, function(res2) {
            //     console.log(res2)
            // })
            $.get('http://www.liulongbin.top:3006/api/robot', {
                spoken: '你好'
            }, function(res1) {
                console.log(res1);
                $.get('http://www.liulongbin.top:3006/api/synthesize', {
                    text: res1.data.info.text
                }, function(res2) {
                    console.log(res2)
                })
            })




        })
    </script>
</body>

</html>